<?php

/**
* User class
* keep information for a user.
* @author dmq (master@dmq.se)
*/
class User
{
	private $id;
	private $name;
	private $password;
	private $email;

	/**
    * The constructor
    * @param $id Int the userID
    * @param $name String the name of the user
    * @param $password String the password of the user
    * @param $email String the email of the user
    */
	public function __construct( $id, $name, $password, $email )
	{
		$this->id = $id;
		$this->name = $name;
		$this->password = $password;
		$this->email =$email;
	}

	/**
	* function id
	* @return returns the userID
	*/
	public function id()
	{
		return $this->id;
	}

	/**
	* function name
	* @return returns the name of the user
	*/
	public function name()
	{
		return $this->name;
	}

	/**
	* function password
	* @return returns the password of the user
	*/
	public function password()
	{
		return $this->password;
	}

	/**
	* function email
	* @return returns the email of the user
	*/
	public function email()
	{
		return $this->email;
	}
}
